﻿<Window x:Class="TicTacToe.UI.NetHostPropertiesWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:components="clr-namespace:TicTacToe.UI.Components"
        Icon="..\3dtictactoe.png" Title="Host Game" Height="200" Width="250"
        ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen" 
        Closing="Window_Closing" x:ClassModifier="internal">
    <StackPanel>
        
        <GroupBox Margin="2,0" Header="Player Properties" >
            <components:PlayerPropertyControl x:Name="playerControl" />
        </GroupBox>
        
        <GroupBox Margin="2,0" Header="Server Properties" >
            <Grid>
                
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>

                <Label Content="Port" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" />
                <TextBox Name="portTextBox" Text="13131" Width="60" Grid.Column="0" Grid.Row="1" VerticalAlignment="Bottom" HorizontalContentAlignment="Center" />
            </Grid>
        </GroupBox>
        
        <StackPanel Margin="0,6,6,0" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Margin="0,0,3,0" Style="{StaticResource buttonStyle}" IsCancel="True"  Name="cancelButton" Height="23" Width="75" VerticalAlignment="Center" Content="Cancel" Click="cancelButton_Click" />
            <Button Margin="3,0,6,0" IsEnabled="False" Style="{StaticResource buttonStyle}" IsDefault="True" Name="continueButton" Height="23" Width="75" VerticalAlignment="Center" Content="Continue" Click="continueButton_Click" />
        </StackPanel>
    </StackPanel>
</Window>
